﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Computer_Manager.DTO
{
    class DTO_order
    {
        private int _id_order;

        public int id_order
        {
            get { return _id_order; }
            set { _id_order = value; }
        }
        private string _codes_order;

        public string codes_order
        {
            get { return _codes_order; }
            set { _codes_order = value; }
        }

        private int _id_user;

        public int id_user
        {
            get { return _id_user; }
            set { _id_user = value; }
        }

        private DateTime _date_create;

        public DateTime date_create
        {
            get { return _date_create; }
            set { _date_create = value; }
        }

        private int _id_cus;

        public int id_cus
        {
            get { return _id_cus; }
            set { _id_cus = value; }
        }

        private float _total_money;

        public float total_money
        {
            get { return _total_money; }
            set { _total_money = value; }
        }

        private bool _status;

        public bool status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DTO_order() 
        {
            _id_order = 0;
            _codes_order = "";
            _id_user = 0;
            _date_create = DateTime.Now;
            _id_cus = 0;
            _total_money = 0;
            _status = false;
        }

        public DTO_order(int Id_user, string Codes_order, DateTime Date_create, int Id_cus, float Total_money, bool Status)
        {
            _id_user = Id_user;
            _codes_order = Codes_order;
            _date_create = Date_create;
            _id_cus = Id_cus;
            _total_money = Total_money;
            _status = Status;
        }
    }
}
